package com.xd.clap.controller;


import com.xd.clap.entity.request.PageParam;
import com.xd.clap.entity.response.Result;
import com.xd.clap.services.RateService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/rate")
public class RateController {

    @Resource
    private RateService rs;


    /**
     * 分页查询意见
     */
    @PostMapping("/getRatePage")
    public Result getRatePage(@RequestBody PageParam pageParam) {
        return rs.getRatePage(pageParam);
    }


}
